package com.xinjie.controller;

import com.xinjie.pojo.Student;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller // 交给spring
public class StudentController {
    @ResponseBody // 不跳转页面
    @RequestMapping("/student")

    public String studentInfo(Student student) {
        System.out.println(student);
        return "success";
    }

}
